<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>菜单管理</title>
    <link rel="stylesheet" href="/static/assets/layui-v2.5.6/css/layui.css">
    <link rel="stylesheet" href="/static/css/custom/layui.css">
</head>
<body>
<div class="container">
    <form class="layui-form" id="queryForm">
        <div class="layui-form-item">
            <div>
                <label class="layui-form-label">菜单信息：</label>
                <div class="layui-input-inline">
                    <input name="menuSearchContent" type="text" class="layui-input" autocomplete="off"
                           placeholder="名称，编码，路径">
                </div>
            </div>
            <div>
                <button class="layui-btn layui-btn-normal" id="btnSearch">
                    <i class="layui-icon layui-icon-search"></i>搜索
                </button>
                <button class="layui-btn layui-btn-primary v-top" id="resetBtn">
                    <i class="layui-icon layui-icon-fonts-clear"></i>清空
                </button>
                <button class="layui-btn layui-btn" type="button" id="addBtn">
                    <i class="layui-icon layui-icon-add-1"></i>新增导航
                </button>
                <button class="layui-btn layui-btn " type="button" id="expandBtn">
                    <i class="layui-icon layui-icon-down"></i>全部展开
                </button>
                <button class="layui-btn layui-btn" type="button" id="foldBtn">
                    <i class="layui-icon layui-icon-up"></i>全部折叠
                </button>
            </div>
        </div>
    </form>
    <div class="data_table" style="padding-bottom: 30px">
        <table class="layui-table" id="datagrid" lay-filter="datagrid"></table>
    </div>
    <#--编辑表单-->
    <div id="dataModel" class="data-model">
        <form class="layui-form" action="">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">菜单名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="menuName" lay-verify="required" autocomplete="off"
                               placeholder="请输入菜单名称"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">菜单编码</label>
                    <div class="layui-input-inline">
                        <input type="text" name="menuCode" lay-verify="required" autocomplete="off"
                               placeholder="请输入菜单编码"
                               class="layui-input">
                    </div>
                </div>


            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">菜单url</label>
                    <div class="layui-input-inline">
                        <input type="text" name="menuUrl" placeholder="请输入菜单跳转url"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">父级菜单</label>
                    <div class="layui-input-inline">
                        <input type="text" id="menuPid" name="menuPid" placeholder="请输入父级菜单"
                               autocomplete="off"
                               class="layui-input" readonly>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">权限</label>
                <div class="layui-input-block">
                    <input type="text" name="menuPermission" placeholder="" autocomplete="off"
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">菜单图标</label>
                    <div class="layui-input-inline">
                        <input type="tel" name="menuIcon" autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">菜单类型</label>
                    <div class="layui-input-inline">
                        <select name="menuType" lay-verify="required" lay-search="">
                            <option value="">请选择或搜索菜单类型</option>
                            <option value="1">菜单</option>
                            <option value="2">导航</option>
                            <option value="3">按钮</option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">菜单排序</label>
                    <div class="layui-input-inline">
                        <input type="number" name="menuSort" lay-verify="required" placeholder="" autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">加载方式</label>
                    <div class="layui-input-inline">
                        <select name="menuLoadType" lay-verify="required" lay-search="">
                            <option value="">请选择或搜索加载方式</option>
                            <option value="1">框架内置</option>
                            <option value="2">单页</option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block">
                    <input type="text" name="menuRemark" placeholder="" autocomplete="off"
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item btn-opt">
                <div class="layui-input-block">
                    <button type="submit" id="formSubmitBtn" class="layui-btn" lay-submit="form_submit_btn"
                            lay-filter="form_submit_btn">确定
                    </button>
                </div>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript" src="/static/assets/jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="/static/assets/layui-v2.5.6/layui.js"></script>
<script type="text/javascript" src="/static/js/page.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
<script type="text/javascript" src="/static/js/base_system/menu.js"></script>
</body>
</html>